# Contributor:
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=mako
pkgver=1.8.0
pkgrel=2
pkgdesc="A lightweight notification daemon for Wayland"
url="https://wayland.emersion.fr/mako/"
arch="all"
license="MIT"
options="!check" # contains no test suite
makedepends="
	basu-dev
	cairo-dev
	gdk-pixbuf-dev
	glib-dev
	meson
	ninja
	pango-dev
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="
	$pkgname-dbg
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-fish-completion
	$pkgname-zsh-completion
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/emersion/mako/archive/v$pkgver.tar.gz"

build() {
	abuild-meson \
		-Dsd-bus-provider=basu \
		-Dicons=enabled \
		-Dbash-completions=true \
		-Dfish-completions=true \
		-Dzsh-completions=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
d187c00296f3c3d4fb2c5964a95e1ac6ab74deb7dc27633d8e8301d60d90e4dc92b0ee66953670c42a3c08160536a4126ee747214c4ea05a30a80fd5e2004ad0  mako-1.8.0.tar.gz
"
